//
//  node.h
//  SSE
//
//  Created by Matt Roman on 3/21/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#ifndef MFUNS_H
#define MFUNS_H
#include "Mfuns.h"
#endif



@interface node : NSObject {
	bool		visited;
	int			ObjID;
	int			vertexNumber;
	Point3f		vertex;
	double		distance;
	double		direction;
	node		*parentNode;
}

- (id)initNodeWithID:(int)num point:(Point3f)pt;
- (bool) visited;
- (void) setVisited:(bool)a;
- (int) getID;
- (int) vertexNumber;
- (void) setVertexNumber:(int)num;
- (void) setPoint:(Point3f)pt;
- (Point3f) getPoint;
- (Point3f *) getPtrPoint;
- (double) distance;
- (void) setDistance:(double)d;
- (double) direction;
- (void) setDirection:(double)d;
- (node *) parentNode;
- (void) setParentNode:(node *)nd;
- (NSComparisonResult) compareAngle:(node *)aNode;
- (NSString *)description;
- (void) clear;
- (void) dealloc;
@end
